//package com.agileboot.admin.config.mq;
//
//import org.springframework.amqp.core.Binding;
//import org.springframework.amqp.core.BindingBuilder;
//import org.springframework.amqp.core.Queue;
//import org.springframework.amqp.core.TopicExchange;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//public class MqConfig {
//
//    @Bean
//    public TopicExchange medicineTopicExchange() {
//        return new TopicExchange(MqConstants.EXCHANGE_TOPIC, true, false);
//    }
//
//    @Bean
//    public Queue medicineInsertQueue() {
//        return new Queue(MqConstants.INSERT_QUEUE, true);
//    }
//
//    @Bean
//    public Queue medicineDeleteQueue() {
//        return new Queue(MqConstants.DELETE_QUEUE, true);
//    }
//
//    @Bean
//    public Binding medicineInsertBinding() {
//        return BindingBuilder.bind(medicineInsertQueue()).to(medicineTopicExchange()).with(MqConstants.INSERT_KEY);
//    }
//
//    @Bean
//    public Binding medicineDeleteBinding() {
//        return BindingBuilder.bind(medicineDeleteQueue()).to(medicineTopicExchange()).with(MqConstants.DELETE_KEY);
//    }
//
//}
